package com.BlogPark.mapper;

import com.BlogPark.pojo.Article;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface SearchArticleMapper {

    //根据id查询具体的文章
    Article selectById(String id);

    //根据词条查询相关的文章
    List<Article> selectByEntry(String entry);

    //返回所有文章
    List<Article> showAll();
}
